package org.cmroot.certmaster.shared.dto.ext;

import org.cmroot.certmaster.shared.dto.AbstractPkcsDTO;
import org.cmroot.certmaster.shared.dto.Pkcs10DTO;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Date;

/**
 * Copyright (c) 2011 Andrey Domas <andrey.domas at gmail.com>.
 * *
 * This file is part of certmaster.
 * *
 * Certmaster is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * *
 * Certmaster is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, see http://www.gnu.org/licenses
 * or write to the Free Software Foundation,Inc., 51 Franklin Street,
 * Fifth Floor, Boston, MA 02110-1301  USA
 */
public class Pkcs10ExtDTO extends AbstractPkcsDTO implements ExtDTO {
    private String dn;
    private int version;
    private String signature_alg;
    private int pubKey_length;
    private String pubKey_alg;
    private String pubkey_modulus;
    private int pubkey_modulus_length;
    private String pubkey_exponent;
    private ArrayList<ExtensionDTO> extensions;

    public ArrayList<ExtensionDTO> getExtensions() {
        return extensions;
    }

    public void setExtensions(ArrayList<ExtensionDTO> extensions) {
        this.extensions = extensions;
    }

    public String getDN() {
        return dn;
    }

    public void setDN(String dn) {
        this.dn = dn;
    }

    public String getPubkey_exponent() {
        return pubkey_exponent;
    }

    public void setPubkey_exponent(String pubkey_exponent) {
        this.pubkey_exponent = pubkey_exponent;
    }

    public int getPubKey_length() {
        return pubKey_length;
    }

    public void setPubKey_length(int pubKey_length) {
        this.pubKey_length = pubKey_length;
    }

    public int getPubkey_modulus_length() {
        return pubkey_modulus_length;
    }

    public void setPubkey_modulus_length(int pubkey_modulus_length) {
        this.pubkey_modulus_length = pubkey_modulus_length;
    }

    public String getPubkey_modulus() {
        return pubkey_modulus;
    }

    public void setPubkey_modulus(String pubkey_modulus) {
        this.pubkey_modulus = pubkey_modulus;
    }

    public String getPubKey_alg() {
        return pubKey_alg;
    }

    public void setPubKey_alg(String pubKey_alg) {
        this.pubKey_alg = pubKey_alg;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public String getSignature_alg() {
        return signature_alg;
    }

    public void setSignature_alg(String signature_alg) {
        this.signature_alg = signature_alg;
    }

}
